package com.yn.direct;

import com.rabbitmq.client.*;
import com.yn.thread.MQCustomerThread;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

/**
 * @ClassName: Producer
 * @Description: direct：消费者
 * @author: 王胜
 * @date 2021/3/31
 * @Version: 1.0
 **/
public class Customer {
    public static void main(String[] args) {
        new MQCustomerThread("queue1").start();
        new MQCustomerThread("queue2").start();
    }
}
